﻿using System.Collections.Generic;
using Eagles.Base;
using Eagles.DomainService.Model.App;
using Eagles.DomainService.Model.News;
using Eagles.Application.Model.Common;
using Eagles.Application.Model.Enums;

namespace Eagles.Interface.DataAccess.NewsDa
{
    public interface INewsDa : IInterfaceBase
    {
        TbAppModule GetSubCateType(int moduleId, int appId);

        List<TbNews> GetModuleNews(int moduleId,int appId, bool isHome = false, int pageIndex = 1, int pageSize = 10,int branchId=0);

        TbNews GetNewsDetail(int newsId, int appId);

        int AddNewsViewCount(int type, int newsId);

        List<JoinPeople> GetMeetingJoinPeople(int newsId);

        List<TbNews> GetMeetings(MeetEnum meetType, int userId, int appId, int pageIndex = 1, int pageSize = 10);

        int GetMeetingsCount(MeetEnum meetType, int userId, int appId);

        TbNews GetMeetingDetail(int newsId, int appId);
    }
}